<?php

# include parseCSV class.
  require_once('lib-parsecsv/parsecsv.lib.php');

# create new parseCSV object.
  $csv = new parseCSV();

# Parse '_sabc.csv' using automatic delimiter detection...
  $csv->auto('example-data/_sabc.csv');

# then we output the file to the browser as a downloadable file...
  $csv->output('_sabc-original.csv');

# ...when the first parameter is given and is not null, the
# output method will itself send the correct headers and the
# data to download the output as a CSV file. If it's not set
# or is set to null, output will only return the generated
# CSV output data, and will not output to the browser itself.

?>
